<template>
     <div class="app-container">
            <!-- 申请表 -->
            <div class="form-blok">
                
                <div class="source" id="apply">
                    <!-- 标题 -->
                    <el-row>
                        <h1>广西水利电力职业技术学院国家助学金申请表</h1>
                    </el-row>

                    
                        <table class="full-width">
                            <!-- 姓名性别民族 -->
                            <tr>
                                <td class="table-label"  rowspan="4">基本信息</td>
                                <td class="table-label">姓名</td>
                                <td class="table-input">
                                    {{formData.xm}}
                                
                                </td>
                                <td class="table-label">性别</td>
                                <td class="table-input">
                                  
                                    {{formData.xb}}
                                    
                                </td>

                                <td class="table-label">民族</td>
                                <td class="table-input">
                                    {{formData.mz}}
                                </td>

                                 <td class="image-input"  rowspan="3">
                                      
                                    <img  :src="baseurl+formData.zp" class="avatar">
                                           
                                 </td>
                            </tr>
                             <!-- 政治面貌学号入学时间 -->
                            <tr>
                                <td class="table-label">政治面貌</td>
                                <td class="table-input">
                                    {{formData.zzmm}}
                                </td>
                                <td class="table-label">学号</td>
                                <td class="table-input">
                                    {{formData.xh}}
                                </td>

                                <td class="table-label">入学时间</td>
                                <td class="table-input">
                                    {{formData.rxsj}}
                                </td>

                            </tr>
                             <!-- 出生年月电话年级-->
                            <tr>
                                <td class="table-label">出生年月</td>
                                <td class="table-input">
                                    {{formData.csny}}
                                </td>
                                <td class="table-label">电话</td>
                                <td class="table-input">
                                      {{formData.dh}}
                                </td>

                                <td class="table-label">年级</td>
                                <td class="table-input">
                                    {{formData.nj}}
                                </td>

                               
                            </tr>
                            <!-- 学院 - 专业 - 班级信息 -->
                            <tr>
                                <td class="table-input" colspan="7">
                                    <div class="class-info">
                                        <div>
                                            <div>
                                                {{formData.xy}}
                                            </div>
                                            <span>学院</span>
                                        </div>
                                        <div>
                                            <div>
                                                {{formData.zy}}
                                            </div>
                                            <span>专业</span>
                                        </div>
                                        <div>

                                            <div>
                                                {{formData.bj}}
                                            </div>
                                            <span>班级</span>
                                        </div>
                                    </div>
                                </td>   
                            </tr>
                            <!-- 资助历史 -->
                            <tr>
                                <td class="table-label" colspan="3">前一段时间收到何等资助</td>
                                <td class="table-input" colspan="5">
                                    <div>
                                        {{formData.zzls}}
                                    </div>
                                </td>   
                            </tr>
                            <!-- 困难类型 -->
                             <tr class="type">
                                <td class="table-label">困难类型</td>
                                <td class="table-input table-align-left" colspan="7">

                                 
                                     <div>
                                        <el-row class="radio-group-row">
                                            <div  class="radio-group">
                                                <el-radio-group  v-model="formData.knlx">
                                                    <el-radio   :label="'1'">脱贫家庭学生</el-radio>
                                                </el-radio-group>
                                            </div>
                                            <div v-show="formData.knlx == '1'">
                                                <span style="margin-right:10px;">脱贫年份: </span>
                                                <el-radio-groupv-model="formData.knlx2">
                                                    <el-radio :label="'1'">2014年/2015年</el-radio>
                                                    <el-radio :label="'2'">2016年</el-radio>
                                                 </el-radio-groupv-model=>
                                            </div>
                                        </el-row>
                                        <el-row class="radio-group-row">
                                            <div  class="radio-group">
                                                <el-radio-group  v-model="formData.knlx">
                                                    <el-radio :label="'2'">监测对象家庭学生</el-radio>
                                                </el-radio-group>
                                            </div>
                                            <div v-show="formData.knlx == '2'">
                                               
                                                <el-radio-group  v-model="formData.knlx2">
                                                    <el-radio :label="'1'">脱贫不稳定家庭学生</el-radio>
                                                    <el-radio :label="'2'">边缘易致贫家庭学生</el-radio>
                                                    <el-radio :label="'3'">突发严重困难家庭学生</el-radio>
                                          
                                                 </el-radio-group>
                                            </div>
                                        </el-row>
                                        <el-row class="radio-group-row">
                                            <div  class="radio-group">
                                                <el-radio-group   v-model="formData.knlx">
                                                    <el-radio :label="'3'">最低生活保障家庭学生</el-radio>
                                                </el-radio-group>
                                            </div>
        
                                            <div v-show="formData.knlx == '3'">
                                               
                                                <el-radio-group  v-model="formData.knlx2">
                                                    <el-radio :label="'1'">城市</el-radio>
                                                    <el-radio :label="'2'">农村</el-radio>
                                              
                                                 </el-radio-group>
                                            </div>
                                        </el-row>

                                        
                                        <el-row class="radio-group-row">
                                            <div  class="radio-group">
                                                <el-radio-group   v-model="formData.knlx">
                                                    <el-radio :label="4">特困救助供养学生</el-radio>
                                                </el-radio-group>
                                            </div>
                                     
                                            <div v-show="formData.knlx == '4'">
                                               
                                                <el-radio-group  v-model="formData.knlx2">
                                                    <el-radio :label="'1'">城市</el-radio>
                                                    <el-radio :label="'2'">农村</el-radio>
                                              
                                                 </el-radio-group>
                                            </div>
                                        </el-row>

                                        <el-row class="radio-group-row">
                                            <div  class="radio-group">
                                                <el-radio-group  v-model="formData.knlx">
                                                    <el-radio :label="'5'">家庭经济困难残疾学生</el-radio>
                                                </el-radio-group>

                                                <el-radio-group v-model="formData.knlx">
                                                    <el-radio :label="'6'">家庭经济困难残疾人子女</el-radio>
                                                </el-radio-group>
                                                <el-radio-group v-model="formData.knlx">
                                                    <el-radio :label="'7'">孤儿</el-radio>
                                                </el-radio-group>
                                               
                                                <el-radio-group  v-model="formData.knlx">
                                                    <el-radio :label="'8'">事实无人抚养儿童</el-radio>
                                                </el-radio-group>
                                                  <el-radio-group  v-model="formData.knlx">
                                                    <el-radio :label="'9'">烈士子女</el-radio>
                                                </el-radio-group>
                                              
                                                 <el-radio-group  v-model="formData.knlx">
                                                    <el-radio :label="'10'">建档困难职工家庭学生</el-radio>
                                                </el-radio-group>
                                            </div>
                                        </el-row>
                                        <el-row class="radio-group-row">
                                            <div  class="radio-group">
                                                <el-radio-group  v-model="formData.knlx">
                                                    <el-radio :label="'11'">低收入对象</el-radio>
                                                </el-radio-group>
                                            </div>
                                              <div v-show="formData.knlx == '11'">
                                               
                                                <el-radio-group  v-model="formData.knlx2">
                                                    <el-radio :label="'1'">低保边缘家庭学生</el-radio>
                                                    <el-radio :label="'2'">支出型困难家庭学生</el-radio>
                                                </el-radio-group>
                                            </div>
                                        </el-row>

                                        <el-row class="radio-group-row">
                                            <div  class="radio-group">
                                                <el-radio-group   v-model="formData.knlx">
                                                    <el-radio :label="'12'">其他家庭经济困难学生</el-radio>
                                                </el-radio-group>
                                            </div>
                                              <div v-show="formData.knlx == '12'">
                                               
                                                   （请简述原因）  <el-input  v-model="formData.knlx2"  placeholder="请输入内容"></el-input>

                                            </div>
                                        </el-row>
                                    </div> 
                                </td>   
                            </tr>
                            <!-- 困难等级 -->
                             <tr>
                                <td class="table-label">困难等级</td>
                                <td class="table-input table-align-left" colspan="7">
                                    <div>
                                        <el-form-item prop="kndj" :rules="rules">
                                            <el-radio-group  v-model="formData.kndj" :disabled="xsEditDisable">
                                                <el-radio :label="'1'">特别困难</el-radio>
                                                <el-radio :label="'2'">比较困难</el-radio>
                                                <el-radio :label="'3'">一般困难</el-radio>
                                            </el-radio-group>
                                         </el-form-item>
                                    </div>
                                      
                                </td>   
                            </tr>
                            <!-- 家庭经济情况 -->
                            <tr>
                                <td class="table-label" rowspan="4">家庭经济情况</td>
                            </tr>
                            <tr>
                                <td class="table-label" colspan="2">家庭人口总数</td>
                                <td class="table-input" colspan="5">
                                    <div>
                                        {{formData.rkzs}}
                                    </div>
                                </td>   
                            </tr>
                            <tr>
                                <td class="table-label" colspan="2">家庭月总收入</td>
                                <td class="table-input" colspan="1">
                                    <div>
                                        {{formData.yzsr}}
                                    </div>
                                </td>
                                <td class="table-label" colspan="1">人均月收入</td>
                                 <td class="table-input" colspan="1">
                                    <div>
                                        {{formData.rjyr}}
                                    </div>
                                </td>
                                <td class="table-label" colspan="1">收入来源</td>
                                <td class="table-input" colspan="1">
                                    <div>
                                        {{formData.srly}}
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td class="table-label" colspan="2">家庭详细地址</td>
                                <td class="table-input" colspan="3">
                                    <div>
                                       {{formData.dz}}
                                    </div>
                                </td>
                                <td class="table-label" colspan="1">邮编</td>
                                <td class="table-input" colspan="1">
                                    <div>
                                        {{formData.yb}}
                                    </div>
                                </td>
                            </tr>
                            <!-- 申请理由 -->
                            <tr>
                                <td class="table-label">申请理由</td>
                                <td class="table-input" colspan="7">
                                    <div >
                                        <div class="content">
                                            <el-form-item prop="sqly">
                                                <el-input 
                                                   
                                                    placeholder="请输入内容" 
                                                    type="textarea" 
                                                    v-model="formData.sqly"
                                                    :autosize="{ minRows: 6, maxRows: 18}"
                                                ></el-input>
                                            </el-form-item>
                                        </div>
                                        <div class="signature">
                                            <div>
                                               
                                                
                                                <span>签名：</span>
                                                <el-upload
                                                    :disabled="xsEditDisable"
                                                    class="avatar-uploader"
                                                    :action="upload.url"
                                                    :headers="upload.headers"
                                                    :show-file-list="false"
                                                    :on-success="handleSignatureSuccess"
                                                  >
                                                    <img v-if="formData.xsqm" :src="baseurl + formData.xsqm" class="signature-img">
                                                    <span class="signature-tip" v-else >签名</span>
                                                </el-upload>
                                            </div>
                                            <div>
                                                {{this.formData.xsqmrq}}
                                            </div>
                                        </div>
                                    </div>
                                </td>   
                            </tr>

                             <!-- 家庭成员情况 -->
                            <tr>
                                <td class="table-label" >家庭成员情况</td>
                                <td colspan="7" style="padding:0px;">
                                    <el-table
                                        style="width:100%"
                                        :data="formData.jtcyObj"
                                        width="100%"
                                        :border="true"
                                        align="center"
                                        element-loading-text="数据加载中..."
                                    >
                                        <el-table-column label="姓名" header-align="center" min-width="120">
                                            <template slot-scope="{ row, $index }">
                                                <el-form-item label-width="0px" :prop="'jtcyObj[' + $index +'].xm'" :rules="rules">
                                                    <el-input   v-model="row.xm" placeholder="请输入姓名"></el-input>
                                            
                                                </el-form-item>
                                            </template>
                                        </el-table-column>
                                        <el-table-column label="年龄" header-align="center" min-width="120">
                                            <template slot-scope="{ row, $index }">
                                                <el-form-item label-width="0px" :prop="'jtcyObj[' + $index +'].nl'" :rules="rules" >
                                                    <el-input  v-model="row.nl" placeholder="年龄"></el-input>
                                                </el-form-item>
                                            </template>
                                        </el-table-column>
                                        <el-table-column label="与本人关系" header-align="center" min-width="120">
                                            <template slot-scope="{ row, $index }">
                                                <el-form-item label-width="0px" :prop="'jtcyObj[' + $index +'].gx'" :rules="rules">
                                                    <el-input  v-model="row.gx" placeholder="与本人关系"></el-input>
                                                </el-form-item>
                                            </template>
                                        </el-table-column>
                                        <el-table-column label="学习或工作单位" header-align="center" min-width="120">
                                            <template slot-scope="{ row, $index }">
                                                <el-form-item label-width="0px" :prop="'jtcyObj[' + $index +'].dw'" :rules="rules">
                                                    <el-input  v-model="row.dw" placeholder="学习或工作单位"></el-input>
                                            
                                                </el-form-item>
                                            </template>
                                        </el-table-column>
                                        <el-table-column label="联系电话" header-align="center" min-width="120">
                                            <template slot-scope="{ row, $index }">
                                                <el-form-item label-width="0px" :prop="'jtcyObj[' + $index +'].lxdh'" :rules="rules">
                                                    <el-input  v-model="row.lxdh" placeholder="联系电话"></el-input>
                                            
                                                </el-form-item>
                                            </template>
                                        </el-table-column>
                                        
                                    </el-table>
                                    
                                </td>
                            </tr>
                             <!-- 班级意见 -->
                            <tr>
                                <td class="table-label">班级意见</td>
                                <td class="table-input" colspan="3">
                                    
                                    <div class="qm">
                                            <span  >辅导员（班主任）:</span>
                                            
                                            <el-upload
                                               
                                                class="avatar-uploader"
                                                :action="upload.url"
                                                :headers="upload.headers"
                                                :show-file-list="false"
                                                :on-success="handleFdySignatureSuccess"
                                                >
                                                <img v-if="formData.fdyqm" :src="baseurl + formData.fdyqm" class="signature-img">
                                                <span class="signature-tip"  v-else>签名</span>
                                            </el-upload>
                                            

                                            <div >
                                                {{this.formData.fdyqmrq}}
                                            </div>
                                    </div>
                                </td>
                                <td class="table-label">二级学院意见</td>
                                <td class="table-input" colspan="3">
                               
                                        <div style="overflow:hidden;margin-bottom:10px;">
                                            <div style="float:left;padding:0px 12px">经初审，同意该同学申请：</div>
                                            <el-form-item  style="float:left;padding:0px 12px">
                                                <el-radio-group :disabled="ejxyEditDisable" v-model="formData.csdj" :rules="rules">
                                                    <el-radio :label="'1'">一等</el-radio>
                                                    <el-radio :label="'2'">二等</el-radio>
                                                    <el-radio :label="'3'">三等</el-radio>
                                                </el-radio-group>
                                            </el-form-item>
                                             <div  style="float:left;padding:0px 12px;height:28px;line-height:28px;">
                                                国家助学金
                                            </div>
                                        </div>
                                    <div class="qm">
                                        
                                        <span style="width:300px;">二级学院领导签字（公章）</span>
                                        <el-upload
                                            
                                            class="avatar-uploader"
                                            :action="upload.url"
                                            :headers="upload.headers"
                                            :show-file-list="false"
                                            :on-success="handleEjxyldSignatureSuccess"
                                            >
                                            <img v-if="formData.ejxyldqm" :src="baseurl+formData.ejxyldqm" class="signature-img">
                                            <span class="signature-tip" v-else >签名</span>
                                         </el-upload>
                                        <div>
                                            {{this.formData.ejxyldqmrq}}
                                        </div>
                                    </div>
                                </td>     
                            </tr>
                            <!--学校意见-->
                            <tr>
                                <td class="table-label">学校意见</td>
                                <td class="table-input" colspan="7">
                                    <div style="overflow:hidden;margin-bottom:10px;">
                                        <div style="padding:0px 12px;text-align:left;">经评审，并在校内公示 5 个工作日，无异议，同意该同学申请:</div>
                                        <el-form-item  style="float:left;padding:0px 12px">
                                            <el-radio-group :disabled="xxEditDisable" v-model="formData.zzdj">
                                                <el-radio :label="'1'">一等</el-radio>
                                                <el-radio :label="'2'">二等</el-radio>
                                                <el-radio :label="'3'">三等</el-radio>
                                            </el-radio-group>
                                        </el-form-item>
                                        <div  style="float:left;padding:0px 12px;height:28px;line-height:28px;">
                                            国家助学金
                                        </div>
                                    </div>
                                    <div class="signature">
                                        <div style="margin-right:50px;">
                                            广西水利电力职业技术学院
                                        </div>
                                        <div>
                                            {{this.formData.xxyjrq}}
                                        </div>
                                    </div>
                                </td>   
                            </tr>
                           
                        </table>
             
                </div>

                
            </div>

     </div>
</template>



<script>
import { getToken } from "@/utils/auth";
import { listApply, getApply, getStudentInfo,delApply, saveApply,addApply, updateApply,fdysh,ejxysh,xxyj,nopass } from "@/api/zxj/apply";

export default {
    name:"Poverty_Examine",
    data(){
        return{
           
            xsEditDisable:true,
            fdyEditDisable:true,
            ejxyEditDisable:true,
            xxEditDisable:true,
            recordList:[],
            upload: {
    
                headers: { Authorization: "Bearer " + getToken() },
                // 上传的地址
                url: process.env.VUE_APP_BASE_API + "/common/upload"
            },
            baseurl: process.env.VUE_APP_BASE_API + "/",
            disable:false,
            isShow:true,
            formData:{
                    affixId:null, //附件id
                    step:0,//步骤
                    xm:null,
                    xb:null,
                    mz:null,
                    zzmm:null,
                    zzls:null,
                    xh:null,
                    rxsj:null,
                    csny:null,
                    dh:null,
                    nj:null,
                    xy:null,
                    zy:null,
                    bj:null,
                    kndj:null,
                    knlx:null,
                    knlx_2:null,
                    rkzs:null,
                    yzsr:null,
                    rjyr:null,
                    srly:null,
                    jtcyObj:[],
                    jtcy:[
                        {
                            xm:null,
                            nl:null,
                            gx:null,
                            dw:null,
                            lxdh:null
                        },
                    ],
                
                    sqly:null,//申请理由
                    fdyqm:null,//辅导签名
                    fdyqmrq:null,
                    ejxyldqm:null,
                    ejxyldqmrq:null,
                    xsqm:null,
                    xsqmrq:null,
                    zp:null,
                    csdj:1,
                    xxyjrq:null,
                    zzdj:1,
                    dz:null,
                    yb:null
                
            },
       
            rules:[
                        { required: true, message: '此项必填', trigger: 'blur' }
                ],
           
            options: [
                {
                    value: '汉族',
                    label: '汉族'
                }, 
                {
                    value: '壮族',
                    label: '壮族'
                }, 
                {
                    value: '满族',
                    label: '满族'
                }, 
                {
                    value: '回族',
                    label: '回族'
                }, 
                {
                    value: '苗族',
                    label: '苗族'
                },
                {
                    value: '维吾尔族',
                    label: '维吾尔族'
                }, 
                {
                    value: '土家族',
                    label: '土家族'
                },
            ],
            optionsTemp:[],
            id:null,
           
        }
        

    },
    mounted(){
        
       

    },
   async created(){
  
         this.id  = this.$route.query.id;
        await getApply(this.id).then(response => {
                  this.formData = {
                    ...this.formData,
                    ...response.data
                }
                this.formData.jtcyObj = JSON.parse(response.data.jtcy);
             
        });
          window.onafterprint = this.handleAfterPrint;
        window.print();
      
      
    },
    methods:{
        handleAfterPrint(){
            console.log("a")
            window.close();
        },
        //打印
        print() {
            const printWindow = window.open('', '_blank');
            const printContent = document.getElementById('apply').innerHTML;
            printWindow.document.write(printContent);
            printWindow.document.close();
            printWindow.focus();
            printWindow.print();
            printWindow.close();
            window.print()
         
        },
        //民族选择
        findNation(query){
          
            if (query !== '') {
                
                let items = this.jsonData.filter(item => {
                     return item.indexOf(query) > -1
                });
                this.options = [];
                for(let index = 0;index <items.length;index ++ ){
                    this.options.push({
                        label:items[index],
                        value:items[index]
                    })
                }
    
            }
            else{
                this.options = this.optionsTemp;
            }
        },
        //获取学生信息，进入到
        //附件id
        handleAffix(affixId){
            this.formData.affixId = affixId;
        },
        handleAvatarSuccess( response, file, fileList){

           this.formData.zp = response.fileName;
        },
        handleSignatureSuccess(response, file, fileList){
            this.formData.xsqm = response.fileName;
        },
        handleFdySignatureSuccess(response, file, fileLis){
            this.formData.fdyqm = response.fileName;
        },
        handleEjxyldSignatureSuccess(response, file, fileLis){
            this.formData.ejxyldqm = response.fileName;
        },
        beforeAvatarUpload(){
            console.log();
        },
        onSubmit(){
            // 
            if(!this.formData.zp ){
                   this.$modal.msgError("请上传照片");
                return;
            }

             if(!this.formData.xsqm ){
                   this.$modal.msgError("请上传签名照片");
                return;
            }
            
            
            let data = {};
            Object.assign(data,this.formData);
            data.step = 1;
            this.$refs['formData'].validate((valid) => {
                if (valid) {

                    data.jtcy = JSON.stringify(this.formData.jtcyObj);
                    if(this.formData.id){
                        updateApply(data).then(response => {
                            this.$tab.closePage();
                        });
                    }else{
                        addApply(data).then(response => {
                            this.$tab.closePage();
                        });
                    }
                } else {
                    return false;
                }
            });
     
        },
        //根据学号查询学生信息
        getStudent(){
            getStudentInfo({"stuNo":this.formData.xh}).then(res=>{
                //精确查找到
                if(res.data){

                     this.formData.xh = res.data.stuNo;
                    this.formData.xm = res.data.name;
                    this.formData.xb = res.data.gender;
                    this.formData.xy =  res.data.dept.deptName;
                    this.formData.zy = res.data.srsMajors.majorName;
                    this.formData.bj = res.data.srsClass.className;
                    this.formData.csny = res.data.birthday;
                    this.formData.dh = res.data.phone;
                    var arr = res.data.srsFemilyMenberList
                    if(arr.length >= 1){
                        this.formData.jtcyObj =[];
                    }
                    for (var i = 0; i < arr.length; i++) {
                        var obj = {}
                        obj.xm = arr[i].kinsfolkName
                        obj.nl = arr[i].fatehrAge
                        obj.gx = arr[i].kinsfolkRelate
                        obj.dw = arr[i].workUnit
               
                        this.formData.jtcyObj.push(obj)
                    }
                }   
            })
        },
        //计算月入人均收入,四舍五入
        computedAvg(){
            let rjyr = Math.round(this.formData.yzsr / this.formData.rkzs);
            this.formData.rjyr = !isNaN(rjyr)?rjyr:0;
        },
        //保存
        onSave(){
            if(this.formData.xh == null || this.formData.xh == ""){
                this.$modal.msgError("请输入学号");
                return;
            }
            this.formData.jtcy = JSON.stringify(this.formData.jtcyObj)
       
            if(this.formData.id){
                updateApply(this.formData).then(response => {
                    this.$modal.msgSuccess("提交成功");
                    this.$tab.closePage();
                });
            }else{
                saveApply(this.formData).then(response => {
                    this.$modal.msgSuccess("提交成功");
                
                    this.$tab.closePage();
                });
            }
        },
        handleDeleteRow(row,index) {
            if(  this.formData.jtcyObj.length == 1){
                
                
                let obj =  this.formData.jtcyObj[0]; // 定义一个包含属性的对象
                for (let key in obj) {
                     this.formData.jtcyObj[0][key] =""; // 删除对象的属性
                }
                return;
            }
            this.formData.jtcyObj.splice(index, 1);
           
        },
        handleAddRow(){
            this.formData.jtcyObj.push({
                xm:'',
                nl:'',
                gx:'',
                dw:''     
            })
        },

        onSubmitFdy(){
            let data = {};
            Object.assign(data,this.formData);
            data.step = 2;
            data.jtcy = JSON.stringify(this.formData.jtcyObj)
            if(!this.formData.fdyqm){
                 this.$modal.msgError("请上传签名照片");
                
                return;
            }
       
            data.status1 = "通过"
            fdysh(data).then(response => {
                    this.$modal.msgSuccess("操作成功");
                    this.$tab.closePage();
            });
        },
        onSubmitEjxy(){
            let data = {};
            Object.assign(data,this.formData);
            data.step = 3;
            if(!this.formData.ejxyldqm){
                this.$modal.msgError("请上传签名照片");
                return;
            }
            if(!this.formData.csdj){
                this.$modal.msgError("请选择初审核助学金等级");
                return;
            }
            let params={
                "id":this.formData.id,
                "step":data.step,
                "csdj":this.formData.csdj,
                "ejxyldqm":this.formData.ejxyldqm,
                "ejxyldqmrq":this.formData.ejxyldqmrq,
                "status2":"通过"

            }
            ejxysh(params).then(response => {
                    this.$modal.msgSuccess("操作成功");
                    this.$tab.closePage();
            });
        },
        
        onSubmitxxsh(){
            let data = {};
            Object.assign(data,this.formData);
            data.step = 4;
            if(!this.formData.zzdj){
                 this.$modal.msgError("请选择助学金等级");
                return;
            }
            let params={
                "id":this.formData.id,
                "step":data.step,
                "zzdj":this.formData.zzdj,
                "xxyjrq":this.formData.xxyjrq,
                "status3":"通过"

            }
            xxyj(params).then(response => {
                this.$modal.msgSuccess("操作成功");
                this.$tab.closePage();
            });
        },
        //驳回
        open(status){
          
            this.$prompt('请输入原因', '提示', {
                confirmButtonText: '确定',
                cancelButtonText: '取消',

            }).then(({ value }) => {
                if(value !=null && value != ""){
                
                      let params = {
                        "remark":value,
                        "step":this.formData.step + 1,
                        "applyId":this.formData.id,
                        "status":status,

                    }
                    nopass(params).then(response => {
                   
                        this.$tab.closePage();
                    });
                
                
                }else{
                      this.$modal.msgError("请输入原因");
                }
            });
        },
    }
    

}
</script>


<style scoped>
  
    .form-blok{
            margin: 0 auto;
            width: 900px;
            /* border: 1px solid #ebebeb; */
            border-radius: 3px;
            transition: .2s;
    }
    .source{
        text-align: center;
       
    }
    /* 表格样式 */
    .full-width{
        border-collapse: collapse;
        width: 900px;
    }
    td{
            padding: 8px 10px 8px 10px;
            min-width: 120px;
            max-width: 110px;
            box-sizing: border-box;
            text-overflow: ellipsis;
            vertical-align: middle;
            position: relative;
            text-align: center;
            border: 1px solid #000;
    }
    .table-label{
         min-width: 100px;
        background: #ededed;
      
    }
    .table-input{
        min-width: 100px;

        padding: 8px 0px;
    }
    .table-align-left{
         padding: 8px 8px;
         text-align: left;
    }
    /* 学院专业班级信息 */
    .class-info{
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        
    }
    .class-info>>> .el-input__inner{
        
        /* text-align: right; */
    }
    .class-info div{
        height: 25px;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }
     .class-info div span{
        line-height: 25px;
     }
    /* 输入样式统一 */
    /deep/ .el-input__inner{
        border-width: 0px;
        
    }
    /* 表单样式统一 */
    /deep/ .el-form-item{
        margin-bottom: 0;
    }
    /deep/ .el-textarea__inner{
        border-width: 0px;
    }
    /deep/ .el-date-editor{
        width: 140px;
    }
     /deep/ .el-form-item__error {
        padding-left: 12px;
        position: relative;
        text-align: left;

    }
    .radio-group /deep/ .el-radio-group{
        width: 180px;

    }
    /*  */
    .radio-group-row{
        display: flex;
        flex-direction: row;
        justify-content: left;
        align-content:center;
        font-size: 14px;
        line-height: 20px;
      
    } 
    .signature{
        display: flex;
        flex-direction: row;
        justify-content: right;
        align-content: center;
        margin-right: 40px;
        flex-wrap: wrap;
    }
    .signature span{
        display: block;
        min-width: 50px;
        /* height: 36px;
        line-height: 36px; */
    }
    .signature>div{
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
    }
    .avatar{
        width: 117px;
        height: 156px;
    }
    /deep/ .el-upload{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .image-input{
        padding: 0;
        width: 120px;
        height: 160px;
    }
    .signature-img{
        width: 160px;
        height: 50px;
    }
    .signature-tip{
        width: 160px;
        cursor: pointer;
        color: #1890ff;
        text-align: left;
       
    }
    .qm{
        display: flex;
        flex-direction: column;
        align-content: center;
    
    }
    .qm>span{
  
        text-align:left;
         padding-left: 12px;
    }
    .qm>div{
  
        text-align:right;
        padding-right: 12px;
    }
    
    .qm>.avatar-uploader{
        padding: 12px 0px;
        text-align: center;
    }
     /deep/ .el-input.is-disabled .el-input__inner{
        background-color: #fff;
        color: #000;
     }
    .list .item{
        display: flex ;
        flex-direction: row;
        justify-content: left;
    }
    .list .item span{
        padding: 10px;
    }

</style>